package org.example.designPattern.creation.factory;

import org.example.designPattern.creation.factory.v1.PizzaStoreV1;

public class SimpleFactory {
    public Piz createPizza(String type){
        if("1".equals(type)){
            return new Pizza1();
        }else {
            return new Pizza2();
        }
    }
}
